import com.google.appengine.api.datastore.*
import static com.google.appengine.api.datastore.FetchOptions.Builder.*
 
// query the scripts stored in the datastore
def query = new Query("perfil")
 
 
PreparedQuery preparedQuery = datastore.prepare(query)
 
// return only the first 20 results
def persoas = preparedQuery.asList( withLimit(20) )

request.setAttribute "persoas", persoas
forward "persoas.gtpl"




